<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.18"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>JCSDK C++ API Reference: JCMessageChannel类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">JCSDK C++ API Reference
   &#160;<span id="projectnumber">2.3.3</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="class_j_c_message_channel-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">JCMessageChannel类 参考<span class="mlabels"><span class="mlabel">abstract</span></span><div class="ingroups"><a class="el" href="group___xE6_xB6_x88_xE6_x81_xAF_xE9_x80_x9A_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html">消息通道模块</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="_j_c_message_channel_8h_source.html">JCMessageChannel.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a7c46e2cdda1265a58c980fc019529031"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_j_c_message_channel_item.html">JCMessageChannelItem</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_message_channel.html#a7c46e2cdda1265a58c980fc019529031">sendMessage</a> (<a class="el" href="group___xE6_xB6_x88_xE6_x81_xAF_xE9_x80_x9A_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga0c8b56b8dbe68151f164ba4680f1022b">JCMessageChannelType</a> type, const char *keyId, const char *messageType, const char *text, const char *extraParams, int cookie, bool atAll, const char *atUidList)=0</td></tr>
<tr class="separator:a7c46e2cdda1265a58c980fc019529031"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2de75f8da09b6dc92ef404aa236b0394"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_j_c_message_channel_item.html">JCMessageChannelItem</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_message_channel.html#a2de75f8da09b6dc92ef404aa236b0394">sendFile</a> (<a class="el" href="group___xE6_xB6_x88_xE6_x81_xAF_xE9_x80_x9A_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga0c8b56b8dbe68151f164ba4680f1022b">JCMessageChannelType</a> type, const char *keyId, const char *messageType, const char *fileUri, const char *thumbUri, int size, int duration, const char *extraParams, int cookie, bool atAll, const char *atUidList)=0</td></tr>
<tr class="separator:a2de75f8da09b6dc92ef404aa236b0394"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7933c5ac3e0eeb522a483344b2914e7b"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_message_channel.html#a7933c5ac3e0eeb522a483344b2914e7b">refreshConversation</a> (const char *serverUid, UINT64 lastQueryTime)=0</td></tr>
<tr class="separator:a7933c5ac3e0eeb522a483344b2914e7b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8d527be713c435b241185622284f8884"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_message_channel.html#a8d527be713c435b241185622284f8884">fetchMessages</a> (const char *serverUid, INT64 startMessageId, int count, bool pack)=0</td></tr>
<tr class="separator:a8d527be713c435b241185622284f8884"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a44ade6ca23ef97377d90715d14707295"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_message_channel.html#a44ade6ca23ef97377d90715d14707295">markReadMessage</a> (const char *serverUid, UINT64 messageId)=0</td></tr>
<tr class="separator:a44ade6ca23ef97377d90715d14707295"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a08c3c116415475b4de7016c1d44b589f"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_message_channel.html#a08c3c116415475b4de7016c1d44b589f">markRecvMessage</a> (const char *serverUid, UINT64 messageId)=0</td></tr>
<tr class="separator:a08c3c116415475b4de7016c1d44b589f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a654094a19e3b322402a5d69a67eec691"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_message_channel.html#a654094a19e3b322402a5d69a67eec691">drawBackMessage</a> (const char *serverUid, UINT64 messageId, const char *text)=0</td></tr>
<tr class="separator:a654094a19e3b322402a5d69a67eec691"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a41085ab825d167479620369865c69c89"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_j_c_message_channel.html#a41085ab825d167479620369865c69c89">setThumbDir</a> (const char *thumbDir)=0</td></tr>
<tr class="separator:a41085ab825d167479620369865c69c89"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>用于管理消息 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a654094a19e3b322402a5d69a67eec691"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a654094a19e3b322402a5d69a67eec691">&#9670;&nbsp;</a></span>drawBackMessage()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual int JCMessageChannel::drawBackMessage </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>serverUid</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">UINT64&#160;</td>
          <td class="paramname"><em>messageId</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>text</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>撤回消息</p>
<p>结果通过 <a class="el" href="class_j_c_message_channel_callback.html#afd4ec11e1fd62260028e1dedc8debb1d">onDrawBackMessageResult</a> 通知</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">serverUid</td><td>用户 serverUid 或者群组的 serverUid </td></tr>
    <tr><td class="paramname">messageId</td><td>消息ID </td></tr>
    <tr><td class="paramname">text</td><td>文本内容 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><ul>
<li>&gt;0：成功返回的操作id</li>
<li>-1：失败 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="a8d527be713c435b241185622284f8884"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8d527be713c435b241185622284f8884">&#9670;&nbsp;</a></span>fetchMessages()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual int JCMessageChannel::fetchMessages </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>serverUid</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">INT64&#160;</td>
          <td class="paramname"><em>startMessageId</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>count</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>pack</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取历史消息</p>
<p>结果通过 <a class="el" href="class_j_c_message_channel_callback.html#af87ff18b5760d11edbce3ba576ebcf11">onFetchMessageResult</a> 通知</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">serverUid</td><td>用户 serverUid 或者群组的 serverUid </td></tr>
    <tr><td class="paramname">startMessageId</td><td>起始消息ID，如果-1从最新开始拉取 </td></tr>
    <tr><td class="paramname">count</td><td>拉取历史消息条数 </td></tr>
    <tr><td class="paramname">pack</td><td>消息列表是否一次性返回 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><ul>
<li>&gt;0：成功返回的操作id</li>
<li>-1：失败 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="a44ade6ca23ef97377d90715d14707295"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a44ade6ca23ef97377d90715d14707295">&#9670;&nbsp;</a></span>markReadMessage()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual int JCMessageChannel::markReadMessage </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>serverUid</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">UINT64&#160;</td>
          <td class="paramname"><em>messageId</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>标志消息为已读</p>
<p>结果通过 <a class="el" href="class_j_c_message_channel_callback.html#ac13ab8c1bc42f7d35cda78a85aa89c2e">onMarkReadResult</a> 通知</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">serverUid</td><td>用户 serverUid 或者群组的 serverUid </td></tr>
    <tr><td class="paramname">messageId</td><td>消息ID，如果-1表示最后一条消息 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><ul>
<li>&gt;0：成功返回的操作id</li>
<li>-1：失败 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="a08c3c116415475b4de7016c1d44b589f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a08c3c116415475b4de7016c1d44b589f">&#9670;&nbsp;</a></span>markRecvMessage()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual int JCMessageChannel::markRecvMessage </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>serverUid</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">UINT64&#160;</td>
          <td class="paramname"><em>messageId</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>标志消息为已收</p>
<p>结果通过 <a class="el" href="class_j_c_message_channel_callback.html#a2a12bcba5c6cf156c434820ccbdfaca5">onMarkRecvResult</a> 通知</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">serverUid</td><td>用户 serverUid 或者群组的 serverUid </td></tr>
    <tr><td class="paramname">messageId</td><td>消息ID，如果-1表示最后一条消息 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><ul>
<li>&gt;0：成功返回的操作id</li>
<li>-1：失败 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="a7933c5ac3e0eeb522a483344b2914e7b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7933c5ac3e0eeb522a483344b2914e7b">&#9670;&nbsp;</a></span>refreshConversation()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual int JCMessageChannel::refreshConversation </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>serverUid</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">UINT64&#160;</td>
          <td class="paramname"><em>lastQueryTime</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取消息会话</p>
<p>结果通过 <a class="el" href="class_j_c_message_channel_callback.html#a6f43546d1948aa46214f8477888987c9">onRefreshConversation</a> 通知</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">serverUid</td><td>用户 serverUid 或者群组的 serverUid, null返回全部 </td></tr>
    <tr><td class="paramname">lastQueryTime</td><td>上次查询返回的时间，单位毫秒 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><ul>
<li>&gt;0：成功返回的操作id</li>
<li>-1：失败 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="a2de75f8da09b6dc92ef404aa236b0394"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2de75f8da09b6dc92ef404aa236b0394">&#9670;&nbsp;</a></span>sendFile()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="class_j_c_message_channel_item.html">JCMessageChannelItem</a>* JCMessageChannel::sendFile </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group___xE6_xB6_x88_xE6_x81_xAF_xE9_x80_x9A_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga0c8b56b8dbe68151f164ba4680f1022b">JCMessageChannelType</a>&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>keyId</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>messageType</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>fileUri</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>thumbUri</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>duration</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>extraParams</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>cookie</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>atAll</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>atUidList</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>发送文件消息</p>
<p>消息发送状态通过 <a class="el" href="class_j_c_message_channel_callback.html#ae5ac84a1972e2ad66a54e42a58a375c8">onMessageSendUpdate</a> 通知</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">type</td><td>类型：<ul>
<li><a class="el" href="group___xE6_xB6_x88_xE6_x81_xAF_xE9_x80_x9A_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#gga0c8b56b8dbe68151f164ba4680f1022bae81260071eb3d169c0632cd2e21dd68c">JCMessageChannelType1To1</a> : 一对一消息</li>
<li><a class="el" href="group___xE6_xB6_x88_xE6_x81_xAF_xE9_x80_x9A_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#gga0c8b56b8dbe68151f164ba4680f1022babe536cdae1691690b82cbbcc42474d34">JCMessageChannelTypeGroup</a> : 群组消息 </li>
</ul>
</td></tr>
    <tr><td class="paramname">keyId</td><td>对方唯一标识<ul>
<li>当 type 为 <a class="el" href="group___xE6_xB6_x88_xE6_x81_xAF_xE9_x80_x9A_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#gga0c8b56b8dbe68151f164ba4680f1022bae81260071eb3d169c0632cd2e21dd68c">JCMessageChannelType1To1</a> 时为对方的 serverUid</li>
<li>当 type 为 <a class="el" href="group___xE6_xB6_x88_xE6_x81_xAF_xE9_x80_x9A_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#gga0c8b56b8dbe68151f164ba4680f1022babe536cdae1691690b82cbbcc42474d34">JCMessageChannelTypeGroup</a> 时为群组的 serverUid </li>
</ul>
</td></tr>
    <tr><td class="paramname">messageType</td><td>文件消息类型，用户可以自定义，例如image，video等 </td></tr>
    <tr><td class="paramname">fileUri</td><td>文件链接地址 </td></tr>
    <tr><td class="paramname">thumbUri</td><td>缩略图文件链接地址 </td></tr>
    <tr><td class="paramname">size</td><td>文件大小(字节) </td></tr>
    <tr><td class="paramname">duration</td><td>文件时长，针对语音，视频等消息 </td></tr>
    <tr><td class="paramname">extraParams</td><td>自定义参数集 </td></tr>
    <tr><td class="paramname">cookie</td><td>标志数据 </td></tr>
    <tr><td class="paramname">atAll</td><td>是否@群体成员，针对群消息 </td></tr>
    <tr><td class="paramname">atUidList</td><td>"@"成员的serverUid列表 针对群消息 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><ul>
<li>成功返回 <a class="el" href="class_j_c_message_channel_item.html">JCMessageChannelItem</a> 对象</li>
<li>异常返回 null </li>
</ul>
</dd></dl>

</div>
</div>
<a id="a7c46e2cdda1265a58c980fc019529031"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7c46e2cdda1265a58c980fc019529031">&#9670;&nbsp;</a></span>sendMessage()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="class_j_c_message_channel_item.html">JCMessageChannelItem</a>* JCMessageChannel::sendMessage </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group___xE6_xB6_x88_xE6_x81_xAF_xE9_x80_x9A_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga0c8b56b8dbe68151f164ba4680f1022b">JCMessageChannelType</a>&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>keyId</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>messageType</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>extraParams</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>cookie</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>atAll</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>atUidList</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>发送文本消息</p>
<p>结果通过 <a class="el" href="class_j_c_message_channel_callback.html#ae5ac84a1972e2ad66a54e42a58a375c8">onMessageSendUpdate</a> 通知</p>
<dl class="section note"><dt>注解</dt><dd>文本内容不要超过10KB</dd></dl>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">type</td><td>类型:<ul>
<li><a class="el" href="group___xE6_xB6_x88_xE6_x81_xAF_xE9_x80_x9A_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#gga0c8b56b8dbe68151f164ba4680f1022bae81260071eb3d169c0632cd2e21dd68c">JCMessageChannelType1To1</a> : 一对一消息</li>
<li><a class="el" href="group___xE6_xB6_x88_xE6_x81_xAF_xE9_x80_x9A_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#gga0c8b56b8dbe68151f164ba4680f1022babe536cdae1691690b82cbbcc42474d34">JCMessageChannelTypeGroup</a> : 群组消息 </li>
</ul>
</td></tr>
    <tr><td class="paramname">keyId</td><td>对方唯一标识:<ul>
<li>当 type 为 <a class="el" href="group___xE6_xB6_x88_xE6_x81_xAF_xE9_x80_x9A_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#gga0c8b56b8dbe68151f164ba4680f1022bae81260071eb3d169c0632cd2e21dd68c">JCMessageChannelType1To1</a> 时为对方的 serverUid</li>
<li>当 type 为 <a class="el" href="group___xE6_xB6_x88_xE6_x81_xAF_xE9_x80_x9A_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#gga0c8b56b8dbe68151f164ba4680f1022babe536cdae1691690b82cbbcc42474d34">JCMessageChannelTypeGroup</a> 时为群组的 serverUid </li>
</ul>
</td></tr>
    <tr><td class="paramname">messageType</td><td>文本消息类型，用户可以自定义，例如text，xml等 </td></tr>
    <tr><td class="paramname">text</td><td>文本内容 </td></tr>
    <tr><td class="paramname">extraParams</td><td>自定义参数集 </td></tr>
    <tr><td class="paramname">cookie</td><td>标志数据 </td></tr>
    <tr><td class="paramname">atAll</td><td>是否@群体成员，针对群消息 </td></tr>
    <tr><td class="paramname">atUidList</td><td>"@"成员的serverUid列表 针对群消息 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><ul>
<li>成功返回 <a class="el" href="class_j_c_message_channel_item.html">JCMessageChannelItem</a> 对象</li>
<li>异常返回 null </li>
</ul>
</dd></dl>

</div>
</div>
<a id="a41085ab825d167479620369865c69c89"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a41085ab825d167479620369865c69c89">&#9670;&nbsp;</a></span>setThumbDir()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void JCMessageChannel::setThumbDir </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>thumbDir</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置缩略图存储文件夹</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">thumbDir</td><td>缩略图存储文件夹 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>SDK/all/include/<a class="el" href="_j_c_message_channel_8h_source.html">JCMessageChannel.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
</html>
